"use strict";
const path = require("path");
const assert = require("yeoman-assert");
const helpers = require("yeoman-test");

describe("generator-laya:app", () => {
  beforeAll(() => {
    return helpers
      .run(path.join(__dirname, "../generators/app"))
      .withPrompts({ someAnswer: true });
  });

  it("creates files", () => {
    assert.file([".gitignore"]);
    assert.file([
      ".laya",
      "bin",
      "env",
      "laya",
      "libs",
      "source",
      "src",
      ".prettierrc",
      "index.html",
      "package.json",
      "README.md",
      "tsconfig.json",
      "vite-template.laya",
      "vite.config.js"
    ]);
  });
});
